package com.dragon.modules.yuegou.service.order;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.common.web.PageRequest;
import com.dragon.modules.yuegou.entity.order.OrderRefundDetailEntity;
import com.dragon.modules.yuegou.model.order.OrderRefundDetail;
import com.dragon.modules.yuegou.model.order.RefundInfo;

/**
 * 退款明细(单品) 服务接口
 *
 * @author pbuilder generated
 * @date 2019-08-17 15:16:41
 * @version 2.0
 */
public interface OrderRefundDetailService extends IService<OrderRefundDetailEntity> {

    /**
     * 根据单品id查询单品退款信息
     * @param goodsId
     * @return
     */
    OrderRefundDetail getByGoodsId(String goodsId);
    
    /**
     * 查询退款订单编号、goodsid和退款金额
     */
    IPage<RefundInfo> getRefundInfo(PageRequest page,String buyerId,String busdId);

    IPage<RefundInfo> refundOrderGoodList(PageRequest page, String id, String busdId, Integer orderType);
}